package scoutobahn.util;
/**
 * A simple Tuple.
 * @author mark
 *
 * @param <T1> Type of the first item
 * @param <T2> Type of the second item
 */
public class Tuple<T1, T2> {
    private final T1 one;
    private final T2 two;
    /**
     * Constucts a new Tuple with the given items.
     * @param item1 First item
     * @param item2 Second item
     */
    public Tuple(final T1 item1,
            final T2 item2) {
        this.one = item1;
        this.two = item2;
    }
    /**
     * Returns the first item.
     * @return First item
     */
    public T1 getItemOne() {
        return this.one;
    }
    /**
     * Returns the second item.
     * @return Second item
     */
    public T2 getItemTwo() {
        return this.two;
    }
}
